<template>
  <!-- python gen: Fri Jun 11 10:54:47 2021  -->
  <div class="yj-data-form">
    <el-form
      size="mini"
      ref="ruleForm"
      label-width="200px"
      label-position="left"
      inline
    >
      <!-- 
          <el-col :sm="12">
          <el-form-item prop="JRXKZH" label="金融许可证号">
            <el-input
              style="width: 300px"
              v-model.trim="ruleForm.JRXKZH"
            ></el-input>
          </el-form-item>
        </el-col> -->

      <el-col :sm="12">
        <el-form-item prop="username" label="登录名">
          <span>{{ ruleForm.username }}</span>
        </el-form-item>
      </el-col>

      <el-col :sm="12">
        <el-form-item prop="nickName" label="昵称">
          <span>{{ ruleForm.nickName }}</span>
        </el-form-item>
      </el-col>

      <el-col :sm="12">
        <el-form-item prop="gender" label="性别">
          <span>{{ ruleForm.gender }}</span>
        </el-form-item>
      </el-col>

      <el-col :sm="12">
        <el-form-item prop="phone" label="手机号码">
          <span>{{ ruleForm.phone }}</span>
        </el-form-item>
      </el-col>

      <el-col :sm="12">
        <el-form-item prop="email" label="邮箱">
          <span>{{ ruleForm.email }}</span>
        </el-form-item>
      </el-col>

      <el-col :sm="12">
        <el-form-item prop="enabled" label="状态">
          <!-- <el-input
            maxlength="30"
            style="width: 300px"
            v-model.trim="ruleForm.enabled"
          ></el-input> -->

          <el-switch
            v-model="ruleForm.enabled"
            active-color="#13ce66"
            inactive-color="#ff4949"
          >
          </el-switch>
        </el-form-item>
      </el-col>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "sysuserForm",
  props: ["flag", "item"],
  data() {
    return {
      formDisableFlag: false,
      ruleForm: {
        CHECK_ID: "",

        oid: "",

        deptId: "",

        username: "",

        nickName: "",

        gender: "",

        phone: "",

        email: "",

        avatarName: "",

        avatarPath: "",

        password: "",

        isAdmin: "",

        enabled: "",

        createBy: "",

        updateBy: "",

        pwdResetTime: "",

        createTime: "",

        updateTime: ""
      }
    };
  },
  methods: {},
  mounted() {
    this.ruleForm = this.item;
  }
};
</script>

<style scoped>
/* .yj-data-form { */
/* border: 2px solid green; */
/* width: 800px; */
/* margin: 2px auto; */
/* } */
</style>
